<?php

namespace App\Http\Controllers\Api;

use App\Http\Resources\AreaCollection;
use App\model\Area;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class AreaController extends Controller
{
    public function index(){
       $area=Area::all();
       return new AreaCollection($area);
    }
    /**
     *
     */
    public function index1(){

    }
}
